-
Notifications
You must be signed in to change notification settings - Fork 435
Fix a few problems found running "pod spec lint". #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This includes updating the minimum supported iOS and OSX versions to match gRPC and a fix for a compiler warning found by the linter. The compiler warning was due to careless conversion of grpc event tags from void * to various integer types that were 64 bit but inappropriate for 32 bit architectures. The change now directly exposes void * tags from the shim layer and converts them from UnsafeMutableRawPointers to Int (and back) in SwiftGRPC/Core.
|
@MrMage @rebello95 PTAL. I'm hoping that this podspec is ready to go to the CocoaPods Master Repo. |
rebello95
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 awesome! Thank you for doing this.
| type = CompletionType.completionType(event.type) | ||
| success = event.success | ||
| tag = cgrpc_event_tag(event) | ||
| tag = Int(bitPattern:cgrpc_event_tag(event)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Looks like elsewhere in the codebase there's normally a space between the : and the argument - i.e., Int(bitPattern: cgrpc_event_tag(event)). Same below in Handler.swift 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for catching this
SwiftGRPC.podspec
Outdated
|
|
||
| Pod::Spec.new do |s| | ||
| s.name = 'SwiftGRPC' | ||
| s.version = '0.4.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we bump this to 0.4.2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, will do
SwiftGRPC.podspec
Outdated
| } | ||
|
|
||
| s.summary = 'Swift gRPC code generator plugin and runtime library' | ||
| s.homepage = 'http://www.grpc.io' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to update this to https
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
|
FYI I also have a PR from a few weeks ago open against gRPC Core to fix some |
MrMage
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM save for the things pointed out by @rebello95.
FYI, I've also encountered some build warning with the gRPC CocoaPod (both before and since using gRPC v1.11):

I think they are related because the script that builds the gRPC Podspec from a template duplicates some file paths in the Podspec's path fields. I don't have the time to investigate fixing that right now, though ;-)
|
@rebello95 Thanks for creating grpc/grpc#14854! |
This includes updating the minimum supported iOS and OSX versions
to match gRPC and a fix for a compiler warning found by the linter.
The compiler warning was due to careless conversion of grpc event tags
from void * to various integer types that were 64 bit but inappropriate
for 32 bit architectures. The change now directly exposes void * tags
from the shim layer and converts them from UnsafeMutableRawPointers
to Int (and back) in SwiftGRPC/Core.